import React from "react";
import * as PropTypes from "prop-types";

/**
 * Input File Component
 */
export default class Text extends React.Component
{
    /**
     * 默认属性
     */
    static defaultProps =
    {
        style : {},
        class : "",
        name : ""
    };

    static propTypes =
    {
        class : PropTypes.string,
        style : PropTypes.object,
        name : PropTypes.string,
    };

    render ()
    {
        return <input type="file" name={this.props.name} className={this.props.class} style={this.props.style}/>
    }
}